





import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;


import java.util.*;

/**
 * CopyRright (c)2016/12-:SGW_WH2.1_TMALL_20180102
 * Project:SGW_WH2.1_TMALL_20180102
 * Module ID:Test
 * Comments:TODO
 *
 * @author :chenjun
 * Create Date：2019年3月7日
 * Modified By：Chenjun
 * Modified Date:2019年3月7日
 * Why:TODO
 * Version:<v1.0>
 */
public class Test {




    public static void main(String[] args) throws InterruptedException {
//        //可以使用不同的abort和queue策略来看下执行的效果
//            String s="12313";
//            System.out.println(new ArrayList<String>());
        String str = "{\n" +
                "    \"resultCode\": \"0\",\n" +
                "    \"returnPlanInfo\": [\n" +
                "        {\n" +
                "            \"returnSumMonth\": 9,\n" +
                "            \"accNbrDetail\": \"使用设备：宽带帐号:0716-jza0051821;电信手机:18972113331;固定电话:0716-8242571;\",\n" +
                "            \"returnPlanName\": \"全省多用户79元专款(1年,套餐费)\",\n" +
                "            \"returnPlanId\": 400920900,\n" +
                "            \"returnBalance\": 13831,\n" +
                "            \"returnFlag\": \"1\",\n" +
                "            \"returnMonth\": 2,\n" +
                "            \"paymentMethod\": 16,\n" +
                "            \"startTime\": \"20200410000000\",\n" +
                "            \"stateDate\": \"20200410000000\",\n" +
                "            \"endTime\": \"20210410000000\",\n" +
                "            \"state\": \"00A\",\n" +
                "            \"returnSumBalance\": 73069\n" +
                "        },\n" +
                "        {\n" +
                "            \"returnSumMonth\": 10,\n" +
                "            \"accNbrDetail\": \"使用设备：宽带帐号:0716-jza0051821;电信手机:18972113331;固定电话:0716-8242571;\",\n" +
                "            \"returnPlanName\": \"全省商品赠6.59元每月2年有效(套餐费)\",\n" +
                "            \"returnPlanId\": 400920901,\n" +
                "            \"returnBalance\": 1310,\n" +
                "            \"returnFlag\": \"1\",\n" +
                "            \"returnMonth\": 2,\n" +
                "            \"paymentMethod\": 16,\n" +
                "            \"startTime\": \"20200410000000\",\n" +
                "            \"stateDate\": \"20200410000000\",\n" +
                "            \"endTime\": \"20210410000000\",\n" +
                "            \"state\": \"00A\",\n" +
                "            \"returnSumBalance\": 6590\n" +
                "        }\n" +
                "    ],\n" +
                "    \"resultMsg\": \"SUCCESS\"\n" +
               "}";
//        Map<String, Object> stringObjectMap = parseJSON2Map(str);
//        List<Map<String, Object>> returnPlanInfo =(List<Map<String, Object>>) stringObjectMap.get("returnPlanInfo");
//        for (Map<String, Object> objectMap : returnPlanInfo) {
//            for (String s : objectMap.keySet()) {
//
//                System.out.println(s+"    " +objectMap.get(s));
//            }
//        }



    }
}

class MyTask implements Runnable {
    private int taskNum;

    public MyTask(int num) {
        this.taskNum = num;
    }

    @Override
    public void run() {
        System.out.println("正在执行task " + taskNum);

        try {
            Thread.currentThread().sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("task " + taskNum + "执行完毕");
    }
}